package com.childenglish.entity;

import java.time.LocalDateTime;

public class PictureBook {
    private Long bookId;
    private String title;
    private String author;
    private String coverUrl;
    private String difficulty; // easy, medium, hard
    private Integer ageMin;
    private Integer ageMax;
    private String gradeLevel; // preschool, primary, intermediate, advanced
    private String classCategory; // 启蒙、基础、进阶、提高
    private String description;
    private Integer totalPages;
    private String content; // JSON格式存储页面信息
    private String status; // 0正常 1停用
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    // 无参构造
    public PictureBook() {
    }

    // Getter & Setter
    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(String difficulty) {
        this.difficulty = difficulty;
    }

    public Integer getAgeMin() {
        return ageMin;
    }

    public void setAgeMin(Integer ageMin) {
        this.ageMin = ageMin;
    }

    public Integer getAgeMax() {
        return ageMax;
    }

    public void setAgeMax(Integer ageMax) {
        this.ageMax = ageMax;
    }

    public String getGradeLevel() {
        return gradeLevel;
    }

    public void setGradeLevel(String gradeLevel) {
        this.gradeLevel = gradeLevel;
    }

    public String getClassCategory() {
        return classCategory;
    }

    public void setClassCategory(String classCategory) {
        this.classCategory = classCategory;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(Integer totalPages) {
        this.totalPages = totalPages;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "PictureBook{" +
                "bookId=" + bookId +
                ", title='" + title + '\'' +
                ", difficulty='" + difficulty + '\'' +
                ", ageMin=" + ageMin +
                ", ageMax=" + ageMax +
                ", gradeLevel='" + gradeLevel + '\'' +
                ", classCategory='" + classCategory + '\'' +
                '}';
    }
}

